<template>
	<view>
		<image :src="dataAll.picUrl" mode="" style="width: 100%;height: 300rpx;"></image>
		<view class="mainpadding ffffff xiaohei main_size">{{dataAll.desc}}</view>
		<view class="mainpadding2">
			<view class="flexbetween flex_wrap ">
				<view class="spbox margin_top" v-for="item in list"
					@click="jumpdetail('/pages/index/shangpinxq?id=',item.id)">
					<image class="sptp" :src="item.picUrl" mode=""></image>
					<view class="" style="padding: 30rpx 15rpx;">
						<view class="ershiba xiaohei xiankuan textcenter">{{item.name}}</view>
						<view class="strongtext xiaojin textcenter margin_top">￥{{item.counterPrice}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				list:[],
				listid:"",
				dataAll:{}
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.init()
			this.getbanner()
		},
		methods: {
			getbanner(){
				httpRequest.request('/wx/brand/detail', 'GET', {
					id: this.listid,
				}).then(res => {
					this.dataAll = res.data.brand
				})
			},
			init() {
				httpRequest.request('/wx/goods/list', 'GET', {
					brandId: this.listid,
					page: 1,
					size: 1000
				}).then(res => {
					this.list = res.data.goodsList
				})
			},
		}
	}
</script>

<style>

</style>
